<html>
<head><meta charset="utf-8"><title>How do I get the type an impl belongs to? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20get.20the.20type.20an.20impl.20belongs.20to.3F.html">How do I get the type an impl belongs to?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206201813"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20get%20the%20type%20an%20impl%20belongs%20to%3F/near/206201813" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20get.20the.20type.20an.20impl.20belongs.20to.3F.html#206201813">(Aug 06 2020 at 21:56)</a>:</h4>
<p>Is this <code>impl_parent</code>?</p>



<a name="206201967"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20do%20I%20get%20the%20type%20an%20impl%20belongs%20to%3F/near/206201967" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20do.20I.20get.20the.20type.20an.20impl.20belongs.20to.3F.html#206201967">(Aug 06 2020 at 21:58)</a>:</h4>
<p>looks like <code>impl_trait_ref().self_ty()</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>